package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.AdministratorsDao;
import com.itheima.dao.BorrowDao;
import com.itheima.pojo.Administrators;
import com.itheima.service.AdministratorsService;
import com.itheima.service.BorrowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Service(interfaceClass = AdministratorsService.class)
@Transactional
public class AdministratorsServiceImpl implements AdministratorsService {
    @Autowired
    private AdministratorsDao administratorsDao;
    @Autowired
    private BorrowDao borrowDao;
    @Override
    public Administrators findByName(String name) {
        return borrowDao.findByName(name);
    }

    @Override
    public void editPassword(Administrators administrators) {
        borrowDao.editPassword(administrators);
    }
}
